import { axios } from '@/utils/request'

export function queryPoint (parameter) {
  return axios({
    url: '/point/query',
    method: 'post',
    data: parameter
  })
}

export function addPoint (parameter) {
  return axios({
    url: '/point/add',
    method: 'post',
    data: parameter
  })
}

export function editPoint (parameter) {
  return axios({
    url: '/point/update',
    method: 'post',
    data: parameter
  })
}

export function removePoint (parameter) {
  return axios({
    url: '/point/remove',
    method: 'post',
    data: parameter
  })
}

export function listPoint (parameter) {
  return axios({
    url: '/point/listPoint',
    method: 'post',
    data: parameter
  })
}

export function listPoint4Tree (parameter) {
  return axios({
    url: '/point/listPoint4Tree',
    method: 'post',
    data: parameter
  })
}

export function listPoint4Cascader (parameter) {
  return axios({
    url: '/class/listPoint4Cascader',
    method: 'post',
    data: parameter
  })
}

export function listPointOne (parameter) {
  return axios({
    url: '/point/listPointOne',
    method: 'post',
    data: parameter
  })
}

export function getPoints (parameter) {
  return axios({
    url: '/class/getPoints',
    method: 'post',
    data: parameter
  })
}
